Registers how many components are in the panel after the last modification,
so we can check if, after a resize, the space is still enough for this number
of components or not and modify the panel depending on this.
Returns the number of components that fits in one single row
in the target container in the specific moment
when the method is called (the container can have different
sizes in different moments).